
/**
 * AppleIIGo
 * Internal SmartPort IWM class
 * (C) 2007-2008 by Marc S. Ressl (mressl@umich.edu)
 * Released under the GPL
 */

#include "InternalSmartPortIWM.h"

char * internalSmartPortIWMDriveList[] = {
	"Apple525DiskDrive",
	"Apple525DiskDrive",
	"UniDisk35DiskDrive",
	"UniDisk35DiskDrive",
	"SmartPortDiskDrive",
	"SmartPortDiskDrive",
	0,
};

InternalSmartPortIWM::InternalSmartPortIWM(Motherboard * motherboard,
										   char * slotDeviceName) :
IWM(motherboard, slotDeviceName) {
	connectDrives(internalSmartPortIWMDriveList);
}

void InternalSmartPortIWM::onDevicesConnected() {
	IWM::onDevicesConnected();
	mmu = motherboard->getMmu();
}

UINT8 InternalSmartPortIWM::readMemory(UINT16 address) {
	return mmu->readMemoryDirect(address);
}
